package de.vogella.gwt.helloserver.client;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.DecoratedTabPanel;
import com.google.gwt.user.client.ui.FlexTable;

public class FertigungsGUI  extends Composite {

//	private final ServiceAsync service = GWT.create(Service.class);
	private FlexTable currentOrderTable = new FlexTable();
	public FertigungsGUI(){
		DecoratedTabPanel decoratedTabPanel = new DecoratedTabPanel();
		initWidget(decoratedTabPanel);
		
		
		decoratedTabPanel.add(currentOrderTable, "New tab", false);
		currentOrderTable.setSize("5cm", "3cm");
		initCurrentOrderTable();
		showCurrentOrderTable();
	}
	
	private void initCurrentOrderTable(){
		currentOrderTable.setText(0, 0, "BestellID");
		currentOrderTable.setText(0, 1, "Position");
		currentOrderTable.setText(0, 2, "ProdukID");
		currentOrderTable.setText(0, 3, "Menge");
		currentOrderTable.setText(0, 4, "Bestelldatum");		
	}
	
	private void showCurrentOrderTable(){
		
	}

}
